package com.example.hospitalManage.utils;

/**
 * @projectName: hospitalManage
 * @package: com.example.hospitalManage.utils
 * @className: StatusCode
 * @author: GCT
 * @description: TODO
 * 封装各种状态码
 * @date: 2022/12/17 18:54
 * @version: 1.0
 */
public enum StatusCode {
    //定义枚举项,并调用构造函数
    //http定义好的状态码
    SUCCESS(200),
    SERVER_ERROR(500),
    URL_NOT_FOUND(404),

    //自定义的状态码
    NOT_ALLOWRD_REG(1001);

    //定义成员变量
    public int code;
    //构造方法
    private StatusCode(int code)
    {
        this.code=code;
    }

}
